<?php

namespace Popshouse\AdminBundle;

use Symfony\Component\EventDispatcher\Event;
use Symfony\Component\HttpKernel\HttpKernelInterface;
use Symfony\Component\HttpKernel\Event\FilterControllerEvent;

class ControllerListener
{

    public function __construct()
    {
    	die("test");

    }

    public function onCoreController(FilterControllerEvent $event)
    {
    	 die($event->getController()->get('twig'));
        if (HttpKernelInterface::MASTER_REQUEST === $event->getRequestType()) {
            $this->get('twig')->addExtension(new AsseticExtension(new AssetFactory(), $debug));
        }
    }
}
